#!/bin/bash
person=("Zhang San" "Li Si" "Wang Wu")

for i in "${person[*]}"; do echo $i; done

echo "---------- inner parting line ----------"

for i in "${person[@]}"; do echo $i; done

echo "---------- parting line ----------"

person=("Zhang San" "Li Si" "Wang Wu")

for i in ${person2[*]}; do echo $i; done

echo "---------- inner parting line ----------"

for i in ${person2[@]}; do echo $i; done

echo "---------- parting line ----------"

person=("Zhang San" dark Li Si Wang Wu)

for i in "${person[*]}"; do echo $i; done

echo "---------- inner parting line ----------"

for i in "${person[@]}"; do echo $i; done
